﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace N03_11HCA_HTTTHD.Models
{

    public class TaiKhoan_DangKy
    {
        public static string Name_matKhau_cu = "matKhauCu";

        public static string Name_tenDangNhap = "tenDangNhap";
        public static string Name_matKhau = "matKhau";
        public static string Name_matKhauNhapLai = "matKhauNhapLai";
        public static string Name_hoTen = "hoTen";
        public static string Name_ngaySinh = "ngaySinh";
        public static string Name_gioiTinh = "gioiTinh";
        public static string Name_email = "email";
        public static string Name_diaChi = "diaChi";
        public static string Name_diDong = "diDong";
        public static string Name_dienThoai = "dienThoai";
        public static string Name_fax = "fax";
        
        public static string Name_loaiThanhVien = "loaiThanhVien";
        public static string Name_loaiTaiKhoan = "loaiTaiKhoan";
        public static string Name_linhVucQuanTam = "linhVucQuanTam";
        public static string Name_tenDoanhNghiep = "tenDoanhNghiep";
        public static string Name_diaChiDoanhNghiep = "diaChiDoanhNghiep";
        public static string Name_nguoiDaiDienDoanhNghiep = "nguoiDaiDienDoanhNghiep";
        public static string Name_tongSoNhanVienDoanhNghiep = "tongSoNhanVienDoanhNghiep";
        public static string Name_chucNangDoanhNghiep = "chucNangDoanhNghiep";
        public static string Name_sanPhamChuyenGiaoDoanhNghiep = "sanPhamChuyenGiaoDoanhNghiep";
        public static string Name_linhVucQuanTamDoanhNghiep = "linhVucQuanTamDoanhNghiep";
        public static string Name_gioiThieuDoanhNghiep = "gioiThieuDoanhNghiep";
        public static string Name_hinhAnhDoanhNghiep = "hinhAnhDoanhNghiep";
        public static string Name_ngayThanhLapDoanhNghiep = "ngayThanhLapDoanhNghiep";

        public TaiKhoan_DangKy(Data_DAO_DTO_Lib.DTO.TAIKHOAN_DTO tk, string chuoiLoi, List<Data_DAO_DTO_Lib.DTO.DTO> listLoaiTaiKhoan, List<Data_DAO_DTO_Lib.DTO.DTO> loaiLoaiThanhVien, List<Data_DAO_DTO_Lib.DTO.DTO> listLinhVuc)
        {
            this.TaiKhoan = tk;
            this.ChuoiThongBao = chuoiLoi;
            setListLoaiTaiKhoanTuDTO(listLoaiTaiKhoan);
            setListLoaiThanhVienChaoBanTuDTO(loaiLoaiThanhVien);
            setListLinhVucTuDTO(listLinhVuc);
        }

        //lay danh sach dich vu
        private List<Data_DAO_DTO_Lib.DTO.DANHMUC_DTO> listDM = new List<Data_DAO_DTO_Lib.DTO.DANHMUC_DTO>();
        public List<Data_DAO_DTO_Lib.DTO.DANHMUC_DTO> ListDM
        {
            get
            {
                return listDM;
            }
            set
            {
                listDM = value;
            }
        }

        void setListLinhVucTuDTO(List<Data_DAO_DTO_Lib.DTO.DTO> l)
        {
            listDM = new List<Data_DAO_DTO_Lib.DTO.DANHMUC_DTO>();

            for (int i = 0; i < l.Count; i++)
            {
                listDM.Add((Data_DAO_DTO_Lib.DTO.DANHMUC_DTO)l[i]);
            }
        }

        private Data_DAO_DTO_Lib.DTO.TAIKHOAN_DTO _TaiKhoan;

        public Data_DAO_DTO_Lib.DTO.TAIKHOAN_DTO TaiKhoan
        {
            get { return _TaiKhoan; }
            set { _TaiKhoan = value; }
        }


        private String _ChuoiThongBao;

        public String ChuoiThongBao
        {
            get { return _ChuoiThongBao; }
            set { _ChuoiThongBao = value; }
        }

        void setListLoaiTaiKhoanTuDTO(List<Data_DAO_DTO_Lib.DTO.DTO> l)
        {
            listLoaiTaiKhoan = new List<Data_DAO_DTO_Lib.DTO.LOAITAIKHOAN_DTO>();

            for (int i = 0; i < l.Count; i++)
            {
                listLoaiTaiKhoan.Add((Data_DAO_DTO_Lib.DTO.LOAITAIKHOAN_DTO)l[i]);
            }
        }

        private List<Data_DAO_DTO_Lib.DTO.LOAITAIKHOAN_DTO> listLoaiTaiKhoan;

        public List<Data_DAO_DTO_Lib.DTO.LOAITAIKHOAN_DTO> ListLoaiTaiKhoan
        {
            get
            {
                return listLoaiTaiKhoan;
            }
            set
            {
                listLoaiTaiKhoan = value;
            }
        }

        void setListLoaiThanhVienChaoBanTuDTO(List<Data_DAO_DTO_Lib.DTO.DTO> l)
        {
            loaiLoaiThanhVien = new List<Data_DAO_DTO_Lib.DTO.LOAITHANHVIEN_DTO>();

            for (int i = 0; i < l.Count; i++)
            {
                loaiLoaiThanhVien.Add((Data_DAO_DTO_Lib.DTO.LOAITHANHVIEN_DTO)l[i]);
            }
        }

        private List<Data_DAO_DTO_Lib.DTO.LOAITHANHVIEN_DTO> loaiLoaiThanhVien;

        public List<Data_DAO_DTO_Lib.DTO.LOAITHANHVIEN_DTO> LoaiLoaiThanhVien
        {
            get
            {
                return loaiLoaiThanhVien;
            }
            set
            {
                loaiLoaiThanhVien = value;
            }
        }
    }
}